package com.zcc.testremotedocker.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description TODO
 * @Date 2020/5/13 5:19 下午
 * @Created by zcc.zhu
 */
@RestController
public class TestController {

    @Value("${name}")
    private String name;

    @RequestMapping("getName")
    public String getName(){
        return name;
    }


    @RequestMapping("test1")
    public String test1(){
        return "hello docker test-remote-docker 1111";
    }

    @RequestMapping("test2")
    public String test2(){
        return "hello docker test-remote-docker 222";
    }

}
